import Login from "../pages/login";
import Zhuce from "../pages/zhuce";
import Index from "../components/content";
import Droute from '../components/droute'
import Home from './Home'
import AccountManage from "./hanqun/AccountManage";
import CashOut from "./hanqun/CashOut";
import UserManagement from './UserManagement'
import {
    BrowserRouter as Router,
    Route,
    Redirect
} from 'react-router-dom'
function App (){
    return(
        <Router>
            <div className='App'>
            <Route path='/' exact component={Login}></Route>
            <Route path='/login' component={Login}></Route>
            <Route path='/zhuce' component={Zhuce}></Route>
                {/*<Route path='/index' component={Index}>*/}
                {/*    <Index>*/}
                {/*        <Route path='/index/' exact component={Home}></Route>*/}
                {/*        <Route path='/index/shouye' component={Home}></Route>*/}
                {/*        <Route path='/index/ptixian' component={CashOut}></Route>*/}
                {/*        <Route path='/index/pzhanghao' component={AccountManage}></Route>*/}
                {/*        <Route path='/index/yonghuguanli' component={UserManagement}></Route>*/}
                {/*    </Index>*/}
                {/*</Route>*/}


            <Route path='/index' component={Index}>
                <Index>
                    <Route path='/index/' exact component={Home}></Route>
                    <Droute />
                </Index>
            </Route>
            {/*<Redirect to='/index/shouye' component={Home}></Redirect>*/}
            </div>
        </Router>

    )
}
export {App as default}